

import java.io.Serializable;

public class Stock  implements Serializable
{
   private int id;
   private String _code;
   private String _name;
   private float _price;
   
   public void setCode(String code)
   {
      _code = code;
   }
   
   public void setName(String name)
   {
      _name = name;
   }
   
   public String getCode()
   {
      return _code;
   }
   
   public String getName()
   {
      return _name;
   }
   
   public void setPrice(float price)
   {
      _price = price;
   }
   
   public float getPrice()
   {
      return _price;
   }
   
   public Stock()
   {
      _code = "";
      _name = "";
      _price = 0;
   }   
   
   public Stock(int ID, String code, String name, float price)
   {
       id = ID;
      _code = code;
      _name = name;
      _price = price;
   }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }
   
}